package com.community.web.master.domain.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 李晶
 * @since 2024-07-02
 */

@ApiModel(value = "Store新增/修改对象", description = "")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StoreDto implements Serializable {

    @ApiModelProperty(value = "门店id")
    private Integer id;

    @ApiModelProperty(value = "区域id")
    private Integer areaId;

    @ApiModelProperty(value = "门店名称")
    private String storeName;

    @ApiModelProperty(value = "详细地址")
    private String storeAddress;

    @ApiModelProperty(value = "最大经度")
    private Double maxLongitude;

    @ApiModelProperty(value = "最大纬度")
    private Double maxLatitude;

    @ApiModelProperty(value = "最小经度")
    private Double minLongitude;

    @ApiModelProperty(value = "最小纬度")
    private Double minLatitude;

    @ApiModelProperty(value = "经度")
    private Double longitude;

    @ApiModelProperty(value = "纬度")
    private Double latitude;

    @ApiModelProperty(value = "门店介绍")
    private String storeIntroduce;

    @ApiModelProperty(value = "开始营业时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "停止营业时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime closeTime;

    @ApiModelProperty(value = "1营业，2停业")
    private Integer storeStatus;

}
